package com.naiterui.ehp.bp.bo.im;

import java.util.Objects;

import lombok.ToString;

/**
 * 宣教推送BO
 */
@ToString
public class PublishEduBO {

    private Long doctorId;
    private Long patientId;
    private Long eduId;
    private String eduTitle;
    private String eduUrl;
    private String eduOrigin;
    private String text;

    public boolean validate() {
        return Objects.nonNull(this.doctorId) && Objects.nonNull(this.patientId) && Objects.nonNull(this.eduId);
    }

    public PublishEduBO() {
    }

    public PublishEduBO(Long doctorId, Long patientId, Long eduId, String eduTitle, String eduUrl, String eduOrigin, String text) {
        this.doctorId = doctorId;
        this.patientId = patientId;
        this.eduId = eduId;
        this.eduTitle = eduTitle;
        this.eduUrl = eduUrl;
        this.eduOrigin = eduOrigin;
        this.text = text;
    }

    public Long getDoctorId() {
        return this.doctorId;
    }

    public void setDoctorId(Long doctorId) {
        this.doctorId = doctorId;
    }

    public Long getPatientId() {
        return this.patientId;
    }

    public void setPatientId(Long patientId) {
        this.patientId = patientId;
    }

    public Long getEduId() {
        return this.eduId;
    }

    public void setEduId(Long eduId) {
        this.eduId = eduId;
    }

    public String getEduTitle() {
        return this.eduTitle;
    }

    public void setEduTitle(String eduTitle) {
        this.eduTitle = eduTitle;
    }

    public String getEduUrl() {
        return this.eduUrl;
    }

    public void setEduUrl(String eduUrl) {
        this.eduUrl = eduUrl;
    }

    public String getEduOrigin() {
        return this.eduOrigin;
    }

    public void setEduOrigin(String eduOrigin) {
        this.eduOrigin = eduOrigin;
    }

    public String getText() {
        return this.text;
    }

    public void setText(String text) {
        this.text = text;
    }
}
